package com.jd.after.modules.mis.entity;

import java.io.Serializable;
import java.util.List;

import com.alibaba.druid.sql.dialect.oracle.ast.clause.OracleStorageClause.FlashCacheType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 分类树结构定义
 * MP
 * @TableName  表名-类名
 * 
 * @TableId   主键 
 * 
 */
@TableName("m_category")
public class Category implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private Long id;

    private String cname;

    private Long pid;      //父键



    private Integer orderNum;  //同级下排序

   
    private Integer cj;    //层级 1-

    @TableField(exist = false)
    private List<Category> children;    //辅助字段，子数据

    private String path;       //路径，所有父目录路径 [1,2,3]


    

    
    
   
   

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public List<Category> getChildren() {
        return children;
    }

    public void setChildren(List<Category> children) {
        this.children = children;
    }

    public Integer getCj() {
        return cj;
    }

    public void setCj(Integer cj) {
        this.cj = cj;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

   


    


}
